package com.cw2.creatation.factory.abstractfactory;

public class MainTest {
    public static void main(String[] args) {
        WuLinCarFactory wuLinCarFactory = new WuLinMiniCarFactory();
        AbstractCar abstractCar = wuLinCarFactory.newCar();
        abstractCar.run();

        // 没有实现 mask口罩方法
        AbstractMask abstractMask = wuLinCarFactory.newMask();
//        abstractMask.protectedMe();

        WuLinHangZhouMaskFactory wuLinHangZhouMaskFactory = new WuLinHangZhouMaskFactory();
        AbstractMask mask = wuLinHangZhouMaskFactory.newMask();
        mask.protectedMe();


    }
}
